package cn.ssm.util;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.ssm.pojo.Student;
import cn.ssm.pojo.Users;
import cn.ssm.service.StudentService;
import cn.ssm.service.UsersService;

public class Demo {
	
	@Test
	public  void tt(){
		ApplicationContext context=new ClassPathXmlApplicationContext("beans.xml");
		StudentService stu=(StudentService)context.getBean("studentServiceImpl");
		Student s=new Student();
		s.setStudentname("张三三");
		s.setLoginpwd("121212");
		s.setGradeid(3);
		s.setSex(0);
		s.setPhone("121221222");
		s.setEmail("23@163.com");
		s.setBorndate("2015-06-06");
		s.setAddress("海淀");
		s.setStudentNo(3);
		System.out.println(stu.updateStudent(s));
	}

}
